<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.fc.model.Coach"%>
<%@ page import="com.fc.control.CoachControl" %>
<%@ page import="com.fc.util.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <style type="text/css">
* { margin:0; padding:0; list-style:none;}
.c_subNav { width:150px; }
.c_subNav table { width:100%; border-collapse:collapse;}
.c_subNav a { text-decoration:none; color:#333;}
.c_subNav a:hover { color:#f60;}
.c_subNav ul ul { position:absolute; visibility:hidden; right:-150px; top:-1px;}
.c_subNav li { border-bottom:1px solid #ccc; position:relative; _position:static; float:left; width:100%;}
.c_subNav a.li { position:relative;}
.c_subNav li .option { display:block; line-height:15px; padding:5px 5px 5px 25px; background:no-repeat 5px 4px; cursor:pointer; font:12px Verdana; zoom:1; background:url(img/ico.gif) no-repeat;}
.c_subNav li .option:hover { color:#f60; background-color:#ffa;}
.c_subNav li .option span { display:block; padding-right:15px; background:url(img/ico.gif) no-repeat right 0;}
.c_subNav li .option:hover span { background-position:right -15px;}
.c_subNav .li:hover { z-index:2; background:transparent;}
.c_subNav .li:hover ul { visibility:visible;}
.c_subNav .li:hover ul ul { visibility:hidden;}
.c_subNav .li:hover ul { border:1px solid #ccc; border-width:1px 2px 2px 1px; width:150px; background:#fff; padding:1px;}
.c_subNav .li:hover li { border-bottom:none;}
.c_subNav .li:hover li .option { padding:2px 5px; background:transparent;}
.c_subNav .li:hover li .option:hover { background:#0096ff; color:#fff;}
.c_subNav .li:hover li .option:hover span { background-position:right -30px;}
.c_subNav .li:hover .li:hover ul { visibility:visible; left:145px; top:-2px;}
/*---图标差异---*/
.c_subNav .charges .option { background-position:4px -45px;}
.c_subNav .biz .option { background-position:4px -70px;}
.c_subNav .change .option { background-position:4px -95px;}
.c_subNav .score .option { background-position:4px -120px;}
.c_subNav .server .option { background-position:4px -145px;}
.c_subNav .edit .option { background-position:4px -170px;}
.c_subNav .sms .option { background-position:4px -195px;}
</style>
  </head>
  <body>
  <%
	request.setCharacterEncoding("UTF-8");
	
	int pages = ParamUtil.getInt(request, "pages", 0);
	int id=ParamUtil.getInt(request,"id",0);
	int rowsPerPage = ParamUtil.getInt(request, "pageSize", 10);
	CoachControl cc = new CoachControl();
	Coach coach = new Coach();


	List<Coach> list = new ArrayList<Coach>();
	list = (List) cc.getCoach(pages,rowsPerPage); 
	      
	for (int i = 0; i < list.size(); i++) {
		coach = list.get(i);
%>  
  <div class="c_subNav">
<ul>
<li class="li charges">
<!--[if IE 6]><a class="li" href="#nogo"><![endif]-->
<a href="#nogo" class="option"><%out.println(coach.getName());%></a>

<%} %>

<ul>
<li class="li">
<!--[if IE 6]><a class="li" href="#nogo"><![endif]-->
<a href="#nogo" class="option"><span>话费查询</span></a>


<ul>
<li class="li"><a href="#nogo" class="option">实时话费查询</a></li>
<li class="li"><a href="#nogo" class="option">话费余额查询</a></li>
<li class="li"><a href="#nogo" class="option">月账单查询</a></li>
<li class="li"><a href="#nogo" class="option">月详单查询</a></li>
<li class="li"><a href="#nogo" class="option">缴费历史查询</a></li>
<li class="li"><a href="#nogo" class="option">资费优选推荐</a></li>


  </body>
</html>
